5de2d536ccdc1b3ec8531f2c3cd47a1f393ec5e2,scheduler/scheduler-node/src/main/java/org/ow2/proactive/scheduler/task/executors/forked/env/ForkedJvmTaskExecutionCommandCreator.java,ForkedJvmTaskExecutionCommandCreator,createForkedJvmTaskExecutionCommand,#TaskContext#ScriptResult#String#,73

Before Change


        jvmArguments.add(PASchedulerProperties.TASK_FORK.getCmdLine() + "true");

        StringBuilder classpath = new StringBuilder("." + File.pathSeparatorChar);
        classpath.append(System.getProperty("java.class.path", ""));

        for (String classpathEntry : OneJar.getClasspath()) {
            classpath.append(File.pathSeparatorChar).append(classpathEntry);

After Change


        jvmArguments.add(PASchedulerProperties.TASK_FORK.getCmdLine() + "true");

        StringBuilder classpath = new StringBuilder("." + File.pathSeparatorChar);
        if (!System.getProperty("java.class.path", "").contains("node.jar")) {
            // in case the class path of the node is not built with the node.jar, we
            // build the classpath with wildcards to avoid command too long errors on windows
            classpath.append(getStandardClassPathEntries(variables));